/* 全部商品页面特有样式 */
.page-header {
    margin-bottom: 30px;
    text-align: center;
  }
  
  .page-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
  }
  
  .page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #9c27b0, #e91e63);
    border-radius: 3px;
  }
  
  .filter-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .search-box {
    display: flex;
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
  }
  
  .search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
  }
  
  .search-box input:focus {
    border-color: #9c27b0;
  }
  
  .search-btn {
    padding: 0 15px;
    background: linear-gradient(45deg, #9c27b0, #e91e63);
    border: none;
    border-radius: 0 4px 4px 0;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .search-btn:hover {
    background: linear-gradient(45deg, #8e24aa, #d81b60);
  }
  
  .search-icon {
    font-style: normal;
  }
  
  .filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .filter-group {
    display: flex;
    align-items: center;
  }
  
  .filter-group label {
    margin-right: 10px;
    font-weight: 500;
    color: #555;
  }
  
  .filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
  }
  
  .filter-group select:focus {
    border-color: #9c27b0;
  }
  
  .products-container {
    min-height: 400px;
  }
  
  .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
  }
  
  .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #9c27b0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .empty-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    text-align: center;
  }
  
  .empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #9e9e9e;
  }
  
  .empty-products p {
    font-size: 18px;
    color: #757575;
    margin-bottom: 20px;
  }
  
  .reset-btn {
    padding: 8px 16px;
    background-color: #9c27b0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .reset-btn:hover {
    background-color: #7b1fa2;
  }
  
  .pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 10px;
  }
  
  .pagination-btn {
    padding: 8px 16px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .pagination-btn:hover:not(:disabled) {
    background-color: #e0e0e0;
  }
  
  .pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .page-numbers {
    display: flex;
    gap: 5px;
  }
  
  .page-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .page-number:hover {
    background-color: #f5f5f5;
  }
  
  .page-number.active {
    background-color: #9c27b0;
    color: white;
    border-color: #9c27b0;
  }
  
  /* 响应式调整 */
  @media (max-width: 768px) {
    .filter-section {
      flex-direction: column;
      align-items: stretch;
    }
    
    .search-box {
      max-width: 100%;
      margin-bottom: 20px;
    }
    
    .filter-options {
      flex-direction: column;
      gap: 15px;
    }
    
    .products-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 480px) {
    .products-grid {
      grid-template-columns: 1fr;
    }
    
    .page-number {
      width: 30px;
      height: 30px;
      font-size: 14px;
    }
  }